﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WorkStation.Frameworks.EasyBus.DbModel;

namespace WorkStation.Frameworks.EasyBus.Repositories
{
    /// <summary>
    /// 订阅端变更类型
    /// </summary>
    public enum SubscribeInfoChangeTypeEnum
    {
        Change,
        OffLine,
        OnLine
    }

    /// <summary>
    /// 订阅端信息变更事件
    /// </summary>
    public class SubscribeInfoChangeEvent : Event
    {
        /// <summary>
        /// 变更的订阅端信息
        /// </summary>
        public SubscribeInfo Change { get; set; }

        /// <summary>
        /// 变更类型
        /// </summary>
        public SubscribeInfoChangeTypeEnum SubscribeInfoChangeType { get; set; }
    }
}
